import request from '@renderer/server/index'

// 获得好友列表
export const getFriendListApi = () => {
  return request.get({
    url: '/friend'
  })
}

// 获得群聊里列表
export const getGroupListApi = (page: number) => {
  return request.get({
    url: `/group/list/${page}`
  })
}

// 搜索用户
export const searchUserApi = (keyword: string) => {
  return request.get({
    url: `/search/userPc`,
    params: {
      keyword
    }
  })
}
